package com.spectre.generate.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 整型数据限制,只可用于int型字段
 *
 * @author wangmengqi
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.SOURCE)
public @interface IntegerValue {
    int min() default Integer.MIN_VALUE;

    int max() default Integer.MAX_VALUE;

    int defaultValue() default 0;
}
